/*
* @Author: Marte
* @Date:   2016-10-24 11:41:54
* @Last Modified by:   Marte
* @Last Modified time: 2016-10-25 17:49:21
*/

'use strict';

var sequelizeService = require('../utils/sequelizeService');

sequelizeService.sequelize
  .sync()
  .then(function(){
        var model = sequelizeService.models.RemarkGroup;

        var arr=[{
            RemarkId:1,
            groupName:'头部佩戴首饰'
        },{
            RemarkId:1,
            groupName:'脖子佩戴首饰'
        },{
            RemarkId:1,
            groupName:'佩戴耳钉'
        },{
            RemarkId:2,
            groupName:'非近期照片'
        },{
            RemarkId:2,
            groupName:'不是本人照片'
        },{
            RemarkId:2,
            groupName:'小时候的照片'
        },{
            RemarkId:2,
            groupName:'这是动物的照片'
        },{
            RemarkId:3,
            groupName:'这是风景照片'
        },{
            RemarkId:3,
            groupName:'旁边的大妈抢镜了'
        },{
            RemarkId:3,
            groupName:'景色壮观人不见了'
        }
        ];

        model
      .bulkCreate(arr,{individualHooks:true})
      .then(function() {
        console.log('新增 %d 条记录', arr.length);
      })
      .error(function(err) {
        console.log(err);
      });
  });